
QLineEdit { border: native; -qt-style-features: none; }
QPushButton { border: native; -qt-style-features: none; }
 
PanelQT[type = "LIB_PanelBG"]
{
  
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                 stop: 0 #34495E, 
                 stop: 1 #ABB2B9 
				 );
				 
	/* background: rgb(212,217,221);
	background: rgb(180,190,200);*/
}

PanelQT[type = "LIB_PanelBGPopup"]
{
  
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                 stop: 0 #afc8e1,
                 stop: 1 #FFFFFF 
				 );
				 
	/* background: rgb(212,217,221);
	background: rgb(180,190,200);*/
}


/* START的button样式 */
QPushButton[type = "LIB_BTN_MAIN"]
{
  background: rgb(211,211,211);
  border: 1px solid #000;
  border-radius: 10px;  
}

QPushButton[type = "LIB_BTN_MAIN"]:hover
{
  background: rgb(255,255,255);
  border: 1px solid #000;
  border-radius: 10px;  
}

QPushButton[type = "LIB_BTN_MAIN"]:enabled
{ 
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
			 stop: 0 rgb(120,130,140) 
			 stop: 1 rgb(212,217,221)
			 );
}

QPushButton[type = "LIB_BTN_MAIN"]:pressed
{ 
  background: rgb(100,110,120);
  color: white;
}

QPushButton[type = "LIB_BTN_MAIN"]:on
{ 
  background: rgb(212,217,221);
  color: white;
}

QPushButton[type = "LIB_BTN_MAIN"]:!enabled
{ 
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
			stop: 0 rgb(217,217,217)
			stop: 1 rgb(242,242,242) 			 
			);
}

/*####################   Buttons   ############################*/
QPushButton[type = "LIB_menuPanelSmall"]
{

  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
				 stop: 0 #6e828a,
				 stop: 1 #d8e9f0
				 ); 
				 
  border: 1px solid #000;
  border-radius: 5px;   /*his:5*/
  font-size: 12px; 
}

QPushButton[type = "LIB_menuPanelSmall"]:enabled:hover
{    
	
  background: rgb(237,239,241);
 color: rgb(209,209,209);
}


QPushButton[type = "LIB_menuPanelSmall"]:hover 
{ 
  background: rgb(237,239,241);
}


QPushButton[type = "LIB_menuPanelSmall"]:pressed 
{ 
  background: #6e828a;
}
 
/*####################   LIB_menuPanel_navi   ############################*/

QPushButton[type = "LIB_menuPanel_navi"]
{

  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
				 stop: 0 #6e828a,
				 stop: 1 #d8e9f0
				 ); 
				 
  border: 1px solid #000;
  
  border-top-left-radius: 16px;
  border-bottom-left-radius:16px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
  
  
  font-size: 12px;
  font-family:"楷体";
}

QPushButton[type = "LIB_menuPanel_navi"]:enabled
{
	
}
  
QPushButton[type = "LIB_menuPanel_navi"]:hover 
{ 

  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
				 stop: 0 rgb(255,100,0),
				 stop: 1 rgb(255,255,0)
				 ); 
				 
  background:rgb(255,100,0);
}

QPushButton[type = "LIB_menuPanel_navi"]:pressed
{
  background:rgb(100,255,0);
}
 
QLineEdit[type = "LIB_menuPanel_navi"]
{
  
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
				 stop: 0 #6e828a,
				 stop: 1 #d8e9f0
				 ); 
				 
	
  border-style:solid;
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 0px;
  border-right-width: 0px;
  
  border-radius: 0px;   /*his:5*/
  
}

QLineEdit[type = "LIB_menuPanel_navi_color"]
{
  
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
				 stop: 0 #d8e9f0,
				 stop: 1 #6e828a
				 ); 
				 
	
  border-style:solid;
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 0px;
  border-right-width: 0px;
  
  border-radius: 0px;   /*his:5*/
  
}
QLineEdit[type = "LIB_menuPanel_navi_right"]
{
  
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
				 stop: 0 #6e828a,
				 stop: 1 #d8e9f0
				 ); 
				 
  border-style:solid;

  border-top-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 0px;
  border-right-width: 1px;
  
  border-top-left-radius: 0px;
  border-bottom-left-radius:0px;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
   
  
}
 

/*MenuPanel*/
QPushButton[type = "LIB_menuPanel"]:enabled:hover
{    
	
 color: rgb(209,209,209);
}


QPushButton[type = "LIB_menuPanel"]:hover 
{ 
  background: rgb(237,239,241);
}

QPushButton[type = "LIB_menuPanel"]
{

  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
				 stop: 0 #6e828a,
				 stop: 1 #d8e9f0
				 ); 
				 
  border: 1px solid #000;
  border-radius: 14px;   /*his:5*/
  font-size: 12px;
  font-family:"楷体";
}

QPushButton[type = "LIB_menuPanel"]:enabled:hover
{    
	
 color: rgb(209,209,209);
}


QPushButton[type = "LIB_menuPanel"]:hover 
{ 
  background: rgb(237,239,241);
}


QPushButton[type = "LIB_menuPanel"]:pressed 
{ 
  background: #6e828a;
}
 
/*MenuPanelFolder 显示文件夹的样式*/
QPushButton[type = "LIB_menuPanelFolder"]:enabled:hover
{    
	
 color: rgb(209,209,209);
}


QPushButton[type = "LIB_menuPanelFolder"]:hover 
{ 
  background: rgb(237,239,241);
}

QPushButton[type = "LIB_menuPanelFolder"]
{

  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
				 stop: 0 rgb(80,90,100),
				 stop: 1 #d8e9f0
				 ); 
				 
  border: 1px solid #000;
  border-radius: 14px;   /*his:5*/
  font-size: 12px;
  font-family:"楷体";
}

QPushButton[type = "LIB_menuPanelFolder"]:enabled:hover
{    
	
 color: rgb(209,209,209);
}


QPushButton[type = "LIB_menuPanelFolder"]:hover 
{ 
  background: rgb(237,239,241);
}


QPushButton[type = "LIB_menuPanelFolder"]:pressed 
{ 
  background: #6e828a;
}
/* 工艺对象控制界面按钮 */
QPushButton[type = "LIB_CMD_BUTTON"]
{
  background: rgb(211,211,211);
  border: 1px solid #000;
  border-radius: 0px;  
  font-size: 12px;
}

QPushButton[type = "LIB_CMD_BUTTON"]:hover
{ 
  background: rgba(0,200,255,100); 
  border: 1px solid #000;
  border-radius: 0px;   
}
 
QPushButton[type = "LIB_CMD_BUTTON"]:!enabled
{ 
  background:   rgb(240,206,206);
}

 
 
 
 
 
/*###########################     表格-报警条   ##########################*/
TableQT[type = "LIB_Table_AlertRow"]
{
  background: rgb(237,239,241);
  border: 1px solid rgb(80,90,100);
  color: rgb(80,90,100);  
}
TableQT[type = "LIB_Table_AlertRow"]::item
{
  margin-left: 4px;
}

TableQT[type = "LIB_Table_AlertRow"]:!enabled
{
  border: 1px solid rgba(80,90,100,80);
}
TableQT[type = "LIB_Table_AlertRow"] QHeaderView
{
  background-color: rgb(212,217,221);
  color: rgb(80,90,100);
  border-bottom: 1px solid rgb(80,90,100);   
}
/*Der Head von der Tabelle*/
TableQT[type = "LIB_Table_AlertRow"] QHeaderView::section
{
  background-color: rgb(212,217,221);
  color: rgb(80,90,100);
  padding-left: 5px;
  padding-top: 4px;
  border: 1px solid rgb(80,90,100);
  margin-left:-1px;
  margin-top:-1px;
}
TableQT[type = "LIB_Table_AlertRow"] QHeaderView::section:hover
{
  background: rgb(237,239,241);
  color: rgb(80,90,100);
}
TableQT[type = "LIB_Table_AlertRow"] QHeaderView::section:enabled:pressed
{
  background: rgb(100,110,120);
  color: white;
}
TableQT[type = "LIB_Table_AlertRow"] QHeaderView::section:!enabled
{
  background-color: rgba(212,217,221,80);
  color: rgba(80,90,100,80);
  border: 1px solid rgba(80,90,100,80);
}
TableQT[type = "LIB_Table_AlertRow"] QHeaderView::section:checked
{
  /*possibility of different optic when Table is selected*/
}
/* style the sort indicator */
TableQT[type = "LIB_Table_AlertRow"] QHeaderView::down-arrow
{
  image: url(pictures:wf/stylesheet/downarrow.svg);
  height: 16px;
  width: 16px;
}
TableQT[type = "LIB_Table_AlertRow"] QHeaderView::up-arrow
{
  image: url(pictures:wf/stylesheet/uparrow.svg);
  height: 16px;
  width: 16px;
}

 
/* 工艺对象控制界面按钮 */
QLineEdit[type = "LIB_TEXT_SINGLE"]
{
  background: rgb(220,255,255);
  font-size: 12px;
  
  border: 1px solid #000;
  border-radius: 5px;   /*his:5*/
  
}

QLineEdit[type = "LIB_TEXT_SINGLE"]:enabled:hover
{ 
  background: rgba(0,200,255,100); 
  
}
 
QLineEdit[type = "LIB_TEXT_SINGLE"]:!enabled
{ 
  background:   rgb(240,206,206);
}

 
 
/* 工艺对象控制界面——描述 */
QLineEdit[type = "LIB_TEXT_DESCRIPTION"]
{  

  border: 1px solid #cde;
  border-radius: 5px;   /*his:5*/
  
}

/* 工艺对象控制界面——描述 */
QLineEdit[type = "LIB_TEXT_VALUE"]
{  

  border: 1px solid #0D0;
  border-radius: 5px;   /*his:5*/
  
}

/* 工艺对象控制界面——描述 */
QTextEdit[type = "LIB_COMMAND_RECORDER"]
{  

  border-radius: 16px;   /*his:5*/
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
				 stop: 0 #6e828a,
				 stop: 1 #ABB2B9
				 ); 
  border: 1px solid #cde;
  
}

/*#########################  Tab Widget #########################*/
QTabWidget[type="LIB_TAB"]
{ /* The tab widget frame */
  border: 1px solid rgb(80,90,100);
}
QTabWidget[type="LIB_TAB"]:!enabled
{ /* The tab widget frame */
  border: 1px solid rgba(80,90,100,80);
}
QTabWidget[type="LIB_TAB"]::pane
{ /* The tab widget frame */
  border: 1px solid rgb(80,90,100);
  border-radius: 0px;
  padding: 0px;
  margin: 0px;
}
QTabWidget[type="LIB_TAB"]::pane:!enabled
{ /* The tab widget frame */
  border: 1px solid rgba(80,90,100,80);
}

QTabWidget[type="LIB_TAB"]::tab-bar
{
  left: 0px; /* move to the right by 0px */
}

/* Style the tab using the tab sub-control. Note that
     it reads QTabBar _not_ QTabWidget */
QTabWidget[type="LIB_TAB"]>QTabBar::tab
{
  background: rgb(212,217,221);
  border-left: 1px solid rgb(80,90,100);
  border-right: 1px solid rgb(80,90,100);
  border-top: 1px solid rgb(80,90,100);
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  min-width: 8ex;
  padding: 4 5px;
  margin-right:-1px;
  font-family: "Segoe UI";
  font-size: 14px;
  color: rgb(80,90,100);  /*text color of tabs*/
}
QTabWidget[type="LIB_TAB"]>QTabBar::tab:!enabled
{
  border: 1px solid rgba(80,90,100,80);
  background: rgba(212,217,221,80);
  color: rgba(80,90,100,200);
}
QTabWidget[type="LIB_TAB"]>QTabBar::tab:selected:enabled
{
  background: rgb(100,110,120);
  color: white;
  border-color: rgb(92,110,120);
  border-bottom-color: rgb(80,90,100);
  margin-left: 0px;
  margin-right: -1px;
}
QTabWidget[type="LIB_TAB"]>QTabBar::tab:selected:!enabled
{
  background: rgba(100,110,120,80);
}
QTabWidget[type="LIB_TAB"]>QTabBar::tab:hover:!selected
{
  background: rgb(237,239,241);
  color: rgb(80,90,100);
  border-bottom:0px;
}
QTabWidget[type="LIB_TAB"]>QTabBar::tab:hover:selected
{
  background: rgb(110,120,130);
  color: white;
}

QTabWidget[type="LIB_TAB"]>QTabBar::tab:!selected
{
  margin-top: 0px; /* make non-selected tabs look smaller */
}

QTabWidget[type="LIB_TAB"]>QTabBar::tab:first:selected
{
  margin-left: 0; /* the first selected tab has nothing to overlap with on the left */
}
QTabWidget[type="LIB_TAB"]>QTabBar::tab:first
{
  margin-left: 0; /* the first selected tab has nothing to overlap with on the left */
}

QTabWidget[type="LIB_TAB"]>QTabBar::tab:last:selected
{
  margin-right: 0; /* the last selected tab has nothing to overlap with on the right */
}
QTabWidget[type="LIB_TAB"]>QTabBar::tab:last
{
  margin-right: 0; /* the last selected tab has nothing to overlap with on the right */
}

QTabWidget[type="LIB_TAB"]>QTabBar::tab:only-one
{
  margin: 0; /* if there is only one tab, we don't want overlapping margins */
}
QTabBar[type = "LIB_TAB"] QToolButton
{
  border: 0px;
  border-top:1px solid rgba(80,90,100,0);
  background: rgb(212,217,221);
  margin:-1px;
  margin-top:0px;
  margin-right:0px;
}
QTabBar[type = "LIB_TAB"] QToolButton:hover
{
  background: rgb(237,239,241);
}
QTabBar[type = "LIB_TAB"] QToolButton:!enabled
{
  background: rgb(232,233,234);
}
QTabBar[type = "LIB_TAB"] QToolButton::right-arrow:enabled
{ /* the arrow mark in the tool buttons */
  image: url(pictures:wf/stylesheet/rightarrow.svg);
  border-top:1px solid rgb(80,90,100);
  border-right:1px solid rgb(80,90,100);
  margin-top:-1px;
  margin-right:0px;
  margin-left:1px;
}
QTabBar[type = "LIB_TAB"] QToolButton::right-arrow:!enabled
{ /* the arrow mark in the tool buttons */
  border-top:1px solid rgba(80,90,100,80);
  border-right:1px solid rgba(80,90,100,80);
  image: url(pictures:wf/stylesheet/rightarrow_disabled.svg);
  margin-top:-1px;
  margin-right:0px;
  margin-left:1px;
}
QTabBar[type = "LIB_TAB"] QToolButton::left-arrow
{
  image: url(pictures:wf/stylesheet/leftarrow.svg);
  border-top:1px solid rgb(80,90,100);
  border-left:1px solid rgb(80,90,100);
  margin-top:-1px;
  margin-left:1px;
}
QTabBar[type = "LIB_TAB"] QToolButton::left-arrow:!enabled
{
  border-top:1px solid rgba(80,90,100,80);
  border-left:1px solid rgba(80,90,100,80);
  image: url(pictures:wf/stylesheet/leftarrow_disabled.svg);
}
QTabBar[type = "LIB_TAB"] QToolButton::right-arrow:pressed
{ /* the arrow mark in the tool buttons */
  image: url(pictures:wf/stylesheet/rightarrow_pressed.svg);
  background: rgb(131,145,159);
}
QTabBar[type = "LIB_TAB"] QToolButton::left-arrow:pressed
{
  image: url(pictures:wf/stylesheet/leftarrow_pressed.svg);
  background: rgb(131,145,159);
}






/*SYSTEM_SWITCH_BTN*/
QPushButton[type = "LIB_SysSwitch"]:enabled:hover
{    
	
 color: rgb(209,209,209);
}


QPushButton[type = "LIB_SysSwitch"]:hover 
{ 
  background: rgb(237,239,241);
}

QPushButton[type = "LIB_SysSwitch"]
{

  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
				 stop: 0 oa-color(distsync_running),
				 stop: 1 #d8e9f0
				 ); 
				 
  border: 1px solid #000;
  border-radius: 14px;   /*his:5*/
  font-size: 12px;
  font-family:"楷体";
}

QPushButton[type = "LIB_SysSwitch"]:enabled:hover
{    
	
 color: rgb(209,209,209);
}


QPushButton[type = "LIB_SysSwitch"]:hover 
{ 
  background: rgb(237,239,241);
}


QPushButton[type = "LIB_SysSwitch"]:pressed 
{ 
  background: #6e828a;
}

QTreeView[type=NavigationTree]
{
	background-color: oa-color(LIB_CMD_AUTOMATIC);
}
QTreeView[type=NavigationTree]
{
  font-family: "Arial";
  font-size: 15px;
  margin: 10px;
  color:oa-color(black);
}

QTreeView[type=NavigationTree]::item:hover
{

  color: oa-color(STD_value_default);
  background-color: oa-color(LIB_CMD_AUTOMATIC);
}

QTreeView[type=NavigationTree]::item:selected
{
  
  color: oa-color(STD_value_default);
  background-color: oa-color(LIB_CMD_AUTOMATIC);
}

QTreeView[type=NavigationTree]::branch:has-siblings:!adjoins-item
{
    border-image: url(pictures:icons/tree/vline.png) 0;
}

QTreeView[type=NavigationTree]::branch:has-siblings:adjoins-item
{
    border-image: url(pictures:icons/tree/branch-more.png) 0;
}

QTreeView[type=NavigationTree]::branch:!has-children:!has-siblings:adjoins-item
{
    border-image: url(pictures:icons/tree/branch-end.png) 0;
}

QTreeView[type=NavigationTree]::branch:closed:has-children:has-siblings
{
  image: url(pictures:icons/tree/branch-closed.png);
  border-image: url(pictures:icons/tree/branch-more.png) 0;
}

QTreeView[type=NavigationTree]::branch:closed:has-children:!has-siblings
{
  image: url(pictures:icons/tree/branch-closed.png);
  border-image: url(pictures:icons/tree/branch-end.png) 0;
}


QTreeView[type=NavigationTree]::branch:open:has-children:has-siblings
{
    image: url(pictures:icons/tree/branch-open.png);
  border-image: url(pictures:icons/tree/branch-more.png) 0;
}

QTreeView[type=NavigationTree]::branch:open:has-children:!has-siblings
{
    image: url(pictures:icons/tree/branch-open.png);
  border-image: url(pictures:icons/tree/branch-end.png) 0;
 
}



